package com.mingqijia.gassafety.webserver.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author zhangfei
 * @version 1.0.0
 * @ClassName EditDeviceRequest.java
 * @createTime 2022年02月21日
 */
@Data
@ApiModel(value = "编辑设备信息")
public class EditDeviceRequest {


//    @ApiModelProperty("设备号,15-17位的数字")
    @NotBlank(message = "请输入设备号（IMEI）")
//    @Size(min = 15,max = 15,message = "请输入15位的数字")
    private String imei;

    @ApiModelProperty("设备厂商")
    @NotBlank(message = "设备厂商不能为空")
    private String equipmentManufacturer;

    @ApiModelProperty("设备类型")
    @NotBlank(message = "设备类型不能为空")
    private String equipmentType;

    @ApiModelProperty("设备型号,1-50位的数字")
    @Size(min = 1, max = 50, message = "请输入1-50位的数字")
    @NotBlank(message = "设备型号不能为空")
    private String equipmentModel;

    @ApiModelProperty("检测类型")
    private String detectionType;
    @ApiModelProperty("运营商")
    private String operators;

    @ApiModelProperty("通讯方式")
    private String communicationMode;
    @ApiModelProperty("有效期，只能是数字")
    private int validity;
    @ApiModelProperty("备注")
    private String remark;

    //回路对应点位数
    @ApiModelProperty("回路对应点位数")
    private String loopPoint;

    @NotBlank(message = "设备id编号不能为空")
    @ApiModelProperty("设备id")
    private String equipmentId;


    //ICCID
    @ApiModelProperty("ICCID")
    @NotBlank(message = "ICCID不能为空")
    @Size(min = 20, max = 20, message = "请输入20位ICCID")
    private String iccid;

    @ApiModelProperty("protocol_version")
    @NotBlank(message = "协议版本不能为空")
    private String protocolVersion;

}

